@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }
  &::-webkit-scrollbar {
    width: 6px;
  }
  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

@mixin triangle($width, $height, $color, $direction) {
  $width: $width/2;
  $color-border-style: $height solid $color;
  $transparent-border-style: $width solid transparent;
  height: 0;
  width: 0;
  @if $direction==up {
    border-bottom: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  } @else if $direction==right {
    border-left: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  } @else if $direction==down {
    border-top: $color-border-style;
    border-left: $transparent-border-style;
    border-right: $transparent-border-style;
  } @else if $direction==left {
    border-right: $color-border-style;
    border-top: $transparent-border-style;
    border-bottom: $transparent-border-style;
  }
}

@mixin flex-mixin($type: center, $direction: row, $align: center) {
  display: flex;
  flex-direction: $direction;
  align-items: $align;
  justify-content: $type;
}

@mixin flex-normal() {
  display: flex;
  align-items: center;
}

@mixin flex-column-normal() {
  display: flex;
  flex-direction: column;
}
@mixin flex-space-between() {
  @include flex-mixin(space-between);
}
@mixin set-font($size: 16, $color: #002a4c, $weight: 400) {
  font-size: $size + 0px;
  font-weight: $weight;
  color: $color;
}
@mixin no-wrap-clamp($line: 2) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}
@mixin no-wrap() {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

@mixin container($width: 1200px){
  margin: 0 auto;
  width: $width;
}
